package com.ktjy.ch05.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.ktjy.ch05.entity.Role;


import java.util.HashMap;
import java.util.List;

/**
 * @return 13141
 * 2025/7/14
 * 17:10
 */
public interface IRoleService {
    // 增删改查
    public int insert(Role role);

    public int delete(Long id);

    public int update(Role role);

    public Role get(Long id);

    public List<Role> findAllRoles();

    /**
     * 分页查询角色信息
     */
    public IPage<Role> getRoleByPage(HashMap<String, Object> hashMap);
}
